//
//  MGConstFile.h
//  MortgageHelper
//
//  Created by apple on 16/6/28.
//  Copyright © 2016年 zhangxiang. All rights reserved.
//



#ifndef MGConstFile_h
#define MGConstFile_h

//判断是否为8.0以上系统
//系统版本：
#define IOS8_OR_LATER	( [[[UIDevice currentDevice] systemVersion] floatValue] >= 8 )
#define IOS7_OR_LATER	( [[[UIDevice currentDevice] systemVersion] floatValue] >= 7 )

#define IS_IOS8	( [[[UIDevice currentDevice] systemVersion] intValue] == 8 )
#define IS_IOS7	( [[[UIDevice currentDevice] systemVersion] intValue] == 7 )

#define KEY_WINDOW  [UIApplication sharedApplication].keyWindow

//版本
#define SystemVersion   ([[UIDevice currentDevice] systemVersion])
#define APP_VERSION ([[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleShortVersionString"])

//https://weixin.shulouyi.com 正式库
#define HTML  @"https://weixin.shulouyi.com"
//http://wechat.shulouyi.com  测试库
//#define HTML  @"http://wechat.shulouyi.com"

//https://weixin.shulouyi.com 正式库
#define BSHTML  @"https://bs.anjiebang.com"
//http://wechat.shulouyi.com  测试库
//#define BSHTML  @"https://bs.anjiebang.com:4430"

//屏幕高度,宽度
#define SCREEN_HEIGHT ([UIScreen mainScreen].bounds.size.height)
#define SCREEN_WIDTH ([UIScreen mainScreen].bounds.size.width)
#define NavigationBar_HEIGHT_iOS7_Later     64
#define NavigationBar_HEIGHT 44     //导航栏高度
#define StatusBar_HEIGHT 20         //状态栏高度
#define TABBAR_HEIGHT  49
//颜色配置
#define RGB(r, g, b) [UIColor colorWithRed:r/255.0 green:g/255.0 blue:b/255.0 alpha:1.0]
#define RGBAplha(r, g ,b , a) [UIColor colorWithRed:r/255.0 green:g/255.0 blue:b/255.0 alpha:a]

//系统目录
#define SystemDocuments  [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) lastObject]

#define CacheDocuments  [NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES) lastObject]

#define DocumentDir NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES)[0]

//WEAK_SELF STRONG_SELF


#define WEAK_SELF           __weak __typeof(self) weakSelf = self;

#define STRONG_SELF         __strong __typeof(self) strongSelf = weakSelf;

#define DLog(fmt, ...) {NSLog((@"%s [Line %d] " fmt), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__);}

# define k_Default_Page_size 10

#define USER_DEFAULT [NSUserDefaults standardUserDefaults]

#define defalutHeadImage [UIImage imageNamed:@"touxiangB"]

#define NULLString(string) ((![string isKindOfClass:[NSString class]])||[string isEqualToString:@""] || (string == nil) || [string isEqualToString:@""] || [string isKindOfClass:[NSNull class]]||[[string stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceCharacterSet]] length]==0)


#import "ZXBaseViewController.h"
#import "ZXbaseView.h"

#import "UIView+Positioning.h"
#import "UIColor+Customer.h"
#import "UIFont+Customer.h"
#import "UIImage+Customer.h"
#import "Masonry.h"
#import "MGEnumFile.h"
#import "UITableView+FDTemplateLayoutCell.h"
#import "ImageManager.h"
#import "NSString+IMTExtension.h"
#import "NSString+Tools.h"
#import "MGUserInfoManager.h"
#import "MGNotification.h"


#import "Util.h"

#endif /* MGConstFile_h */
